package com.dq.controller;

import java.util.List;

import com.dq.core.controller.BaseController;
import com.dq.core.page.TableDataInfo;
import com.dq.domain.org.Org;
import com.dq.service.AllService;
import com.dq.service.orders.IMemberService;
import com.dq.test.Member;
import com.dq.vo.ListDataVo;
import com.dq.vo.Vo;
import com.dq.vo.baseVo.VO;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * App用户Controller
 * 
 * @author ruoyi
 * @date 2020-08-05
 */
@Controller
@RequestMapping("/system/member")
public class MemberController extends BaseController {
    private String prefix = "system/member";

    @Autowired
    private IMemberService memberService;

    @RequiresPermissions("system:member:view")
    @GetMapping()
    public String member() {
        return prefix + "/member";
    }

    /**
     * 查询App用户列表
     */
//    @RequiresPermissions("system:member:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(Member member) {
        startPage();
        List<Member> list = memberService.selectMemberList(member);
        return getDataTable(list);
    }
}

